﻿import com.dinmax.flash.central.extension.state.*


class State {
	
	public static var DISABLED:String = "offline";
	public static var ENABLED:String = "online";
	public static var RINGING:String = "ringing";
	public static var CALLING:String = "calling";
	public static var ACTIVE:String = "active";
	
	private var time:Date;
	private var name:String;
	private var description:String;
	
	function State(time:Date){
		//trace("State.as | newState() timer= "+timer);
		this.time = time;
		if(this.time == undefined) this.time= new Date();
		
	};
	
	public function getName():String {
		return name;
	};
	public function getDescription():String {
		return description;
	};
	public function setDescription(description:String):Void {
		this.description = description;
	};
	public function getTime():Date {
		return time;
	};
	public function isDisabled():Boolean {
		return false;
	}; //fin funci	
	public function isEnabled():Boolean {
		return false;
	}; //fin funci	
	public function isActive():Boolean {
		return false;
	}; //fin funci
	public function isRinging():Boolean {
		return false;
	};
	public function isCalling():Boolean {
		return false;
	};
}; // fin de clase